import request from '@/utils/request'

// 调拨列表
export function getallocationlist (data) {
  return request({
    url: '/function/allocation/list',
    method: 'get',
    params: data
  })
}
// 申请调拨
export function postAddallocation (data) {
  return request({
    url: '/function/allocation',
    method: 'post',
    data
  })
}
// 重新申请调拨
export function postupdatereapply (data) {
  return request({
    url: '/function/allocation/reapply/' + data,
    method: 'post',
  })
}

// 审核流程
export function getaudit (data) {
  return request({
    url: '/function/audit/allocation/list',
    method: 'get',
    params: data
  })
}
// 调拨详情
export function getallocation (data) {
  return request({
    url: 'function/allocation/' + data,
    method: 'get',
  })
}
// 与我相关列表
export function getMyAllocation (data) {
  return request({
    url: '/function/allocation/my/list',
    method: 'get',
    params: data
  })
}
// 审核
export function putAuditAllocation (data) {
  return request({
    url: '/function/audit/allocation',
    method: 'put',
    data
  })
}
// 处置列表
export function getdisposalList (data) {
  return request({
    url: '/function/disposal/list',
    method: 'get',
    params: data
  })
}
// 设备处置方式字典列表
export function getDictList (data) {
  return request({
    url: '/system/dict/data/list',
    method: 'get',
    params: data
  })
}
// 申请处置
export function postdisposal (data) {
  return request({
    url: '/function/disposal',
    method: 'post',
    data
  })
}
// 申请处置详情
export function getChildrendisposal (data) {
  return request({
    url: '/function/disposal/' + data,
    method: 'get',
  })
}
// 重新申请
export function postReapplyrendisposal (data) {
  return request({
    url: '/function/disposal/reapply/' + data,
    method: 'post',
  })
}
// 处置与我相关列表
export function getMyDisposal (data) {
  return request({
    url: '/function/disposal/my/list',
    method: 'get',
    params: data
  })
}
// 处置查看审核流程
export function getAuditMyDisposal (data) {
  return request({
    url: '/function/audit/disposal/list',
    method: 'get',
    params: data
  })
}
// 处置详情
export function getAuditChlidren (data) {
  return request({
    url: '/function/disposal/' + data,
    method: 'get',
  })
}
// 处置审核
export function putAuditChlidren (data) {
  return request({
    url: '/function/audit/disposal',
    method: 'put',
    data
  })
}
// 申请变卖
export function postSale (data) {
  return request({
    url: '/function/sale',
    method: 'post',
    data
  })
}
// 变卖列表
export function getsaleList (data) {
  return request({
    url: '/function/sale/list',
    method: 'get',
    params: data
  })
}
// 变卖审核流程
export function getAuditSaleList (data) {
  return request({
    url: '/function/audit/sale/list',
    method: 'get',
    params: data
  })
}
// 变卖详情
export function getChlidrenSale (data) {
  return request({
    url: '/function/sale/' + data,
    method: 'get',
  })
}
// 变卖重新申请
export function postReapplySale (data) {
  return request({
    url: '/function/sale/reapply/' + data,
    method: 'post',
  })
}
// 变卖与我相关列表
export function getMySaleList (data) {
  return request({
    url: '/function/sale/my/list',
    method: 'get',
    params: data
  })
}
// 变卖审核
export function putAuditSale (data) {
  return request({
    url: '/function/audit/sale',
    method: 'put',
    data
  })
}
// 外借列表
export function getBorrowList (data) {
  return request({
    url: '/function/borrow/list',
    method: 'get',
    params: data
  })
}
// 外借详情
export function getChlidrenBorrow (data) {
  return request({
    url: '/function/borrow/' + data,
    method: 'get',
  })
}
// 删除外借
export function deleteBorrow (data) {
  return request({
    url: '/function/borrow/' + data,
    method: 'delete',
  })
}
// 确认外借
export function putBorrow (data) {
  return request({
    url: '/function/borrow/confirm',
    method: 'put',
    data
  })
}
// 新增外借
export function postBorrow (data) {
  return request({
    url: '/function/borrow',
    method: 'post',
    data
  })
}
// 修改外借
export function putBorrowUpdate (data) {
  return request({
    url: '/function/borrow',
    method: 'put',
    data
  })
}
// 调拨设备部分信息列表
export function postPartInfolist (data) {
  return request({
    url: '/function/equipment/account/partInfo/list',
    method: 'get',
    params: data
  })
}
// 未归还设备列表
export function getBorrowEquipmentlist (data) {
  return request({
    url: '/function/borrow/equipment/noReturn/list',
    method: 'get',
    params: data
  })
}
// 未归还设备列表
export function getBorrowNoReturnlist (data) {
  return request({
    url: '/function/borrow/noReturn/list',
    method: 'get',
    params: data
  })
}
// 归还
export function putBorrowEquipment (data) {
  return request({
    url: '/function/borrow/equipment',
    method: 'put',
    data
  })
}
// 外借明细
export function getBorrowlistEquipment (data) {
  return request({
    url: '/function/borrow/equipment/list',
    method: 'get',
    params: data
  })
}

